-- card: 2822 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 2753 -- name: -- part 1 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=48 top=150 right=169 bottom=66 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: a -- part 6 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=68 top=150 right=169 bottom=86 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: s -- part 7 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=88 top=150 right=169 bottom=106 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: d -- part 8 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=108 top=150 right=169 bottom=126 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: f -- part 9 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=128 top=150 right=169 bottom=146 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: g -- part 10 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=148 top=150 right=169 bottom=166 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: h -- part 11 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=168 top=150 right=169 bottom=186 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: j -- part 12 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=188 top=150 right=169 bottom=206 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: k -- part 13 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=208 top=150 right=169 bottom=226 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: l -- part 14 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=228 top=150 right=169 bottom=246 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ; -- part 15 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=39 top=129 right=148 bottom=57 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: q -- part 16 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=59 top=129 right=148 bottom=77 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: w -- part 17 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=79 top=129 right=148 bottom=97 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: e -- part 18 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=99 top=129 right=148 bottom=117 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: r -- part 19 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=119 top=129 right=148 bottom=137 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: t -- part 20 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=139 top=129 right=148 bottom=157 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: y -- part 21 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=159 top=129 right=148 bottom=177 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: u -- part 22 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=179 top=129 right=148 bottom=197 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: i -- part 23 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=199 top=129 right=148 bottom=217 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: o -- part 24 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=219 top=129 right=148 bottom=237 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: p -- part 25 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=239 top=129 right=148 bottom=257 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: [ -- part 26 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=58 top=171 right=190 bottom=76 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: z -- part 27 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=78 top=171 right=190 bottom=96 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: x -- part 28 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=98 top=171 right=190 bottom=116 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: c -- part 29 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=118 top=171 right=190 bottom=136 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: v -- part 30 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=138 top=171 right=190 bottom=156 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: b -- part 31 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=158 top=171 right=190 bottom=176 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: n -- part 32 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=178 top=171 right=190 bottom=196 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: m -- part 33 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=198 top=171 right=190 bottom=216 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: , -- part 34 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=81 top=192 right=209 bottom=224 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: -- part 35 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=218 top=171 right=190 bottom=236 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: . -- part 36 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=259 top=129 right=148 bottom=277 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ] -- part 37 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=248 top=150 right=169 bottom=266 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ' -- part 38 (button) -- low flags: 00 -- high flags: 8002 -- rect: left=238 top=171 right=190 bottom=256 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: / -- part 55 (field) -- low flags: 00 -- high flags: 0007 -- rect: left=299 top=61 right=280 bottom=476 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: -- part 56 (button) -- low flags: 00 -- high flags: A000 -- rect: left=74 top=241 right=260 bottom=233 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Edit background script ----- HyperTalk script ----- on mouseUp edit script of background id 2753 end mouseUp -- part 57 (button) -- low flags: 00 -- high flags: A000 -- rect: left=93 top=263 right=282 bottom=217 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Edit stack script ----- HyperTalk script ----- on mouseUp edit script of stack "Key messages" end mouseUp -- part contents for card part 55 ----- text ----- Key messages by David Bogartz 21 Oct 1987 This stack shows a quick and very dirty way to get HyperCard to send a message when the user presses a key (other than return, tab, and the arrow keys). It doesn't work for number keys, and it probably isn't right for some applications, but it's simple and will probably work in many cases. The basic idea is that there is an idle handler in the background script that looks in the message box and grabs whatever is there. Then, for each keystroke, it generates the event "key" with the char that the user pressed as a parameter. The trick is how to deal with the message box. It looks like the message box is hidden, but in point of fact you can't have the message box hidden because (as far as I can tell) whenever you put something into the message box, HyperCard shows it. So I have it visible, but offscreen. The key-caps-like thing to the left is just a sample of what you can do with this technique.